var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        im.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        im.dispose()
    } else {
        if (status === a++) {
            im.askAcceptDecline("现在马上移动到万神殿吗？\r\n\r\n#r(接受后，马上移动到万神殿。)", 2, 9010000)
        } else {
            if (status === a++) {
                if (im.getQuestStatus(38028) == 1) {
                    im.forceForfeitQuest(38901);
                    im.updateInfoQuest(38902, "");
                    im.forceStartQuest(38902, "");
                    im.updateInfoQuest(38028, "");
                    im.forceStartQuest(38028, "");
                    im.forceCompleteQuest(38028);
                    im.gainExp(6922)
                }
                im.gainItem(2432316, -1);
                im.dispose();
                im.warp(400000000, 0, false)
            } else {
                im.dispose()
            }
        }
    }
};